package org.thanos.demo.entity.menu;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Menu {

    private static final List<Menu> DATA = new ArrayList<>();

    static {
        DATA.add(new Menu(1, "Dashboard", "dashboard", "dashboard", 0));
        DATA.add(new Menu(2, "System", "bars", "", 0));
        DATA.add(new Menu(3, "User", "user", "user", 2));
        DATA.add(new Menu(4, "Limit", "shield", "limit", 2));
    }

    public static List<Menu> menus() {
        return Collections.unmodifiableList(DATA);
    }

    private Integer id;

    private String name;

    private String icon;

    private String path;

    private Integer parentId;

    public Menu(Integer id, String name, String icon, String path, Integer parentId) {
        super();
        this.id = id;
        this.name = name;
        this.icon = icon;
        this.path = path;
        this.parentId = parentId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}
